$card-bgs: (#d4d8fc, #c8e5f0, #fde4dc, #d6e2f2);

@mixin gen_card($list) {
  .card {
    border-radius: $radius;
    padding: $space;
    background-color: $white-color;
    .sub-card {
      background-color: rgba($white-color, 0.4);
      border-radius: $radius;
      padding: $space;
    }
    @for $i from 1 through length($list) {
      $color: nth($list, $i);
      &-bg_#{$i} {
        background-color: $color;
        color: darken($color, 20%);
      }
    }
  }
}
// @include gen_card($card-bgs);

.divider {
  position: relative;
  &::before {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-bottom: solid 1px map-get($border-colors, lighter);
  }
}

.divider_vertical {
  position: relative;
  &::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    height: 50%;
    transform: translate(0, -50%);
    border-left: solid 1px map-get($border-colors, lighter);
  }
}

.small {
  font-size: map-get($font-sizes, xs);
}



//-------------------------

.search-bar {
  background: $white-color;
  border-bottom: solid 1px #ededed;
  box-shadow: 10px 10px 10px #ededed;
  position: sticky;
  top: 44px;
  z-index: 9;
}

.patient {
  border-radius: map-get($radii, xs);

  color: #161a1f;
  padding: map-get($spaces, sm);
  border: solid 1px #ededed;
  border-radius: 4px;
  padding: 8px;

  .card {
    background: #f2fafd;
    padding: 8px;
    border-radius: 6px;
  }
  hr {
    border: none;
    border-bottom: solid 1px #ededed;
  }
  .name {
    color: #575e6c;
    font-weight: bold;
    line-height: 1.8;
  }
  .card-num {
    color: #575e6c;
    font-size: 14px;
  }

  .btn {
    background: #3ebde0;
    color: #fff;
    border: solid 1px #3ebde0;
    border-radius: 6px;
  }

  .btn_small {
    background: none;
    color: #3ebde0;
    border: solid 1px #3ebde0;
    padding: 0 12px;
  }

  .patient-body {
    padding: map-get($spaces, sm);
    padding-bottom: 0px;
    line-height: 2;
  }
  .patient-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: map-get($spaces, sm);
  }
}


.dialog {
  border-radius: $radius;
  .van-dialog__header {
    padding: map-get($spaces, sm);
    border-bottom: solid 1px #f0f0f0;
  }
  .form {
    .form-button-group {
      border-top: solid 1px #f0f0f0;
      display: flex;
      align-items: center;
      gap: map-get($spaces, sm);
      padding: map-get($spaces, sm);
    }
  } 
}

.tabs {
  .van-tabs__content {
    padding: map-get($spaces, sm) map-get($spaces, default);
  }
}

